Repository navigation
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem and change
Old disabled code, completed TODOs, and line-by-line narration obscure the explanations that matter. This removes a net 73 Python comment tokens across 17 files, with identical executable tokens and ASTs.
High-level follow-up plan
These are proposals, not behavior changes in this PR, ranked by impact.
src/tgbot/handlers/treasury/payments.py:pay_if_not_paidchecks existence then inserts; the alert wrapper still says “TODO: atomic?”. The tracked treasury schema has no equivalent payout-key uniqueness constraint.src/flows/crossposting/meme.py:post_meme_to_tgchannelen/post_meme_to_tgchannelrusend to Telegram before receipt/status/reward bookkeeping.src/flows/rewards/uploaded_memes.py.src/tgbot/repo/users.py:mark_user_blocked/mark_user_unblockedimports cache helpers lazily to avoid a cycle throughuser_info.pyandservice.py.src/database.py:fetch_one/fetch_all/execute/run_in_transaction.Keep
The audit focused on application comments and workaround markers, with a targeted check of tests, scripts and migrations. It is deliberately conservative, not a blanket removal of comments or docstrings. No project-scoped GBrain source was available; findings use current repository evidence.
Validation
ruff check src/ tests/,ruff format --check src/ tests/, redaction audit, single migration head, andgit diff --checkpassed.